import axios from '@/utils/request'
export const loginApi = ({ mobile, password }) => {
  return axios({
    method: 'post',
    url: '/sys/login',
    data: {
      mobile,
      password
    }
  })
}

export const UserInfoApi = () => {
  return axios({
    url: '/sys/profile'
  })
}

export const updatePWDApi = ({ oldPassword, newPassword }) => {
  return axios({
    method: 'put',
    url: '/sys/user/updatePass',
    data: {
      oldPassword,
      newPassword
    }
  })
}
